Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): bump html-proxy-middleware to latest version #2616

Closed

Conversation

vtereshyn
Copy link

@vtereshyn vtereshyn commented May 18, 2020

This PR fixes an audit issue.

Also, in the scope of this pull request, I ran npm audit fix to resolve some audit issues. That's why lots of changes in package-lock.json

@jsf-clabot
Copy link

jsf-clabot commented May 18, 2020

CLA assistant check
All committers have signed the CLA.

@vtereshyn vtereshyn mentioned this pull request May 18, 2020
2 tasks
@codecov
Copy link

codecov bot commented May 18, 2020

Codecov Report

Merging #2616 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2616   +/-   ##
=======================================
  Coverage   93.77%   93.77%           
=======================================
  Files          34       34           
  Lines        1333     1333           
  Branches      381      381           
=======================================
  Hits         1250     1250           
  Misses         81       81           
  Partials        2        2           
Impacted Files Coverage Δ
lib/Server.js 96.79% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4ab1f21...b72a232. Read the comment docs.

@vtereshyn
Copy link
Author

I am not sure what should I do with commit message

package.json Outdated
@@ -45,7 +45,7 @@
"del": "^4.1.1",
"express": "^4.17.1",
"html-entities": "^1.3.1",
"http-proxy-middleware": "0.19.1",
"http-proxy-middleware": "1.0.4",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How you use require changed in http-proxy-middleware version 1.0.0. Looks like you didn't update those statements.

https://github.com/chimurai/http-proxy-middleware/releases/tag/v1.0.0

v0.x.x with implicit require

const proxy = require('http-proxy-middleware');

v1.0.0 with explicit require

const { createProxyMiddleware } = require('http-proxy-middleware');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering why this package's version is locked - does need to stay locked?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably, I changed locked version to the latest version and locked it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alright, I removed version locking and fixed http-proxy-middleware usage

@vtereshyn vtereshyn changed the title fix: Bump html-proxy-middleware to latest version fix: bump html-proxy-middleware to latest version May 19, 2020
@vtereshyn vtereshyn changed the title fix: bump html-proxy-middleware to latest version fix(deps): bump html-proxy-middleware to latest version May 19, 2020
@vtereshyn
Copy link
Author

vtereshyn commented May 19, 2020

Not sure what's wrong with tests and other stuff, but I ran tests, lints on my local machine several times and everything looks good.

https://prnt.sc/sjgxzd

Also, I've tested webpack-dev-server locally with my app and everything looks good for me.

@alexander-akait
Copy link
Member

Can't be merged for v3 because it is breaking change, will be shipped in v4

@vtereshyn
Copy link
Author

Can't be merged for v3 because it is breaking change, will be shipped in

what should we do with audit issue? our checks don't pass. I know that a lot of repositories (almost 4 million) use webpack-dev-server.

@alexander-akait
Copy link
Member

@vtereshyn temporary you can don't audit dev dependencies

@vtereshyn
Copy link
Author

@evilebottnawi I am not sure if security managers will like that way :)

@vtereshyn
Copy link
Author

@evilebottnawi sorry, just wondering, which breaking changes are we talking about? I mean, I've checked this pull request with my application and everything looks good. But of course, you know better. thank you in advance

@koltyakov
Copy link

koltyakov commented May 19, 2020

I assume it's about Node.js version and the fact that http-proxy-middleware v1 supports Node v8 and higher while WDS v3 supports Node v6.

@alexander-akait
Copy link
Member

@vtereshyn #2616 (comment)

@lsiler-mdsol
Copy link

@evilebottnawi thanks for the info! when can we expect v4 to be released?

@alexander-akait
Copy link
Member

@lsiler-mdsol I am working on it, sorry can't provide ETA, because I am working only one, but I try to do it ASAP

@chimurai
Copy link
Contributor

Just published [email protected]

Hopefully this'll ease the process to patch the current version of WDS without rushing to release [email protected]

@hughrawlinson
Copy link

What do you think about releasing [email protected] now that there's a patch fix of http-proxy-middleware? That would get around having to block until wds@4.

@vaibhavarora14
Copy link

i have submitted a PR with just patch of http-proxy-middleware Can we get #2665 going?

@alexander-akait
Copy link
Member

Done in v4, for v3 we can backport only #2665

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants